Export to HDF5

Warning

This tool is under construction and will not function for all data types.

This tool exports FLO-2D files into an HDF5 file.

Export the FLO-2D files into a HDF5 file

Note

Set the Control Variables switches before running the Export tool. See Set Control Parameters (CONT.DAT).

  1. Click the Export to HDF5.

../../../../_images/importexport005.png
  1. Navigate to the export folder, set the file name, and click Save.

../../../../_images/exporthdf5001.png
  1. The Export to HDF5 dialog will appear. Select the data you want to export and click OK. A progress bar will appear while the export is in progress.

../../../../_images/exphdf003.png
  1. A message at the QGIS toolbar will show that the file was correctly exported.

../../../../_images/exporthdf5002.png

HDF5 Data Structure

The program HDFView can be used to view the HDF5 file structure. The HDF5 file contains groups of datasets that flopro.exe reads to run the FLO-2D model. The datasets are organized in a way that is simpler than the original FLO-2D files, but still contains all the necessary information.

The HDF5 file will expand as more tables are added. The follwoing image shows the structure of an HDF5 with a grid and control data.

../../../../_images/hdf001.png

The tables are relatively simple as you can see in the coordinates table below. The coordinates table contains the x and y coordinates of the grid nodes.

../../../../_images/hdf002.png

HDFView can be downloaded from the HDF Group website.

See the Technical Reference Manual Appendix C for more details on the HDF5 file structure.

Note

The HDF5 file format is a binary format, so it cannot be opened in a text editor. It must be opened with a program that can read HDF5 files, such as HDFView.